<?php
// Define path to application directory
define('ROOT_PATH', realpath(dirname(__FILE__) . '/..'));
define('APPLICATION_PATH', ROOT_PATH . '/app');
define('BASE_URL', '/social-map/public');

// Define application environment
define('APPLICATION_ENV', 'development');

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    get_include_path(),
    ROOT_PATH . '/library',
    APPLICATION_PATH . '/code'
)));


// redefine autoloader
require_once APPLICATION_PATH . '/code/Bootstrap.php';
Bootstrap::run();